<%--
  Created by IntelliJ IDEA.
  User: dqf
  Date: 2015/3/2
  Time: 16:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<div class="row">
    <!-- NEW WIDGET START -->
    <article class="col-sm-12 col-md-12 col-lg-12">
        <div class="jarviswidget well" id="wid-id-3"
             data-widget-colorbutton="false"
             data-widget-editbutton="false"
             data-widget-togglebutton="false"
             data-widget-deletebutton="false"
             data-widget-fullscreenbutton="false"
             data-widget-custombutton="false"
             data-widget-sortable="false">
            <!-- widget div-->
            <div>
                <div class="widget-body">
                    <div style="margin-bottom: 10px">
                        <a class="btn btn-default" id="btn-re-common" href="javascript:void(0)">
                            <i class="fa fa-lg fa-mail-reply-all"></i>返回
                        </a>
                    </div>

                    <hr class="simple">

                    <form id="proSignIn" class="smart-form" novalidate="novalidate" action="" method="post">
                        <input type="hidden" name="keyId" id="keyId" value="<s:property value="proSignIn.id" />"/>

                        <fieldset>
                            <div class="row">
                                <label class="label col col-2">
                                    <i class="fa fa-asterisk txt-color-red"></i>
                                    项目名称
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <input disabled type="text" id="proInfoName"
                                               value="<s:property value="proSignIn.proInfo.name"/>"/>
                                        <input type="hidden" id="proInfoId" name="proInfoId"
                                               value="<s:property value="proSignIn.proInfo.id"/>"/>
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    所在地区
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <input disabled type="text" id="proArea"
                                               value="<s:property value="proArea"/>"/>
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    项目地址
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <input disabled type="text" id="proAddress"
                                               value="<s:property value="proSignIn.proInfo.address"/>"/>
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    签到时间
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <i class="icon-append fa fa-calendar"></i>
                                        <input disabled class="hasDatepicker form-control" name="createDate" id="createDate"
                                               type="text" value="<s:date name="proSignIn.createDate" format="yyyy-MM-dd HH:mm"/>">
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    签到人
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <input type="text" name="creater" id="creater" value="<s:property value="proSignIn.creater.name"/>" disabled>
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    签到地址
                                </label>
                                <section class="col col-5">
                                    <label class="input state-disabled">
                                        <input name="address" id="address" placeholder="请输入签到地址"
                                               type="text" value="<s:property value="address"/>" disabled>
                                    </label>
                                </section>
                            </div>
                            <div class="row">
                                <label class="label col col-2">
                                    <i class="fa fa-asterisk txt-color-red"></i>
                                    考勤状态
                                </label>
                                <section class="col col-5">
                                    <div class="inline-group">
                                        <label class="radio">
                                            <input disabled type="radio" id="statusY" name="status" value="1" <s:property value="proSignIn.status==1?'checked':''"/>>
                                            <i></i>正常</label>
                                        <label class="radio">
                                            <input disabled type="radio" id="statusN" name="status" value="0" <s:property value="proSignIn.status==0?'checked':''"/>>
                                            <i></i>迟到</label>
                                    </div>
                                </section>
                            </div>

                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </article>
</div>

<script type="text/javascript">

    $(function(){
        //返回视图
        $("#btn-re-common").click(function(){
            loadURL("ajax-pro-signin!map.action",$('div#content'));
        });
    });

</script>
